AUX_SOURCE_DIRECTORY(. ZSDBMAKER_SRC)
ADD_EXECUTABLE(zsdbmaker ${ZSDBMAKER_SRC})
ADD_DEPENDENCIES(zsdbmaker mir2x_3rds)

TARGET_INCLUDE_DIRECTORIES(zsdbmaker PRIVATE ${MIR2X_COMMON_SOURCE_DIR})
TARGET_INCLUDE_DIRECTORIES(zsdbmaker PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
TARGET_INCLUDE_DIRECTORIES(zsdbmaker PRIVATE ${CMAKE_CURRENT_LIST_DIR})

TARGET_LINK_LIBRARIES(zsdbmaker ${ZSTD_LIBRARIES})
TARGET_LINK_LIBRARIES(zsdbmaker common)

INSTALL(TARGETS zsdbmaker DESTINATION tools/zsdbmaker)
